import { isDevMode } from '@eacloud/utils';

// System default cache time, in seconds
export const DEFAULT_CACHE_TIME = 60 * 60 * 24 * 7;

// aes encryption key
export const cacheCipher = {
  key: import.meta.env.VITE_GLOB_STORE_SECURE_KEY || '_11111000001111@',
  iv: import.meta.env.VITE_GLOB_STORE_SECURE_IV || '@11111000001111_',
};

// Whether the system cache is encrypted using aes
export const SHOULD_ENABLE_STORAGE_ENCRYPTION = !isDevMode();
